/*
 * NetTCPReceiver.h
 *
 *  Created on: Apr 27, 2011
 *      Author: jacek
 */

#ifndef NETTCPRECEIVER_H_
#define NETTCPRECEIVER_H_

#include <Component.h>
#include <Socket.h>
using namespace Net;

class NetTCPReceiver: public Component {
public:
	Socket receiverSock;
	NetAddress peer;
	Package package;
	Event* eventBuf;
    void ConvertEventNetToHost();
public:
    NetTCPReceiver();
    NetTCPReceiver(Socket &src );
	virtual ~NetTCPReceiver();
	virtual void Updata(Event event);
	virtual void Intialization();
	virtual void Dispose();
	virtual void SendEvent(Event event);


};

#endif /* NETTCPRECEIVER_H_ */
